package cn.ywang.pattern.strategy;

/**
 * 出租车出行
 *
 * @author BeatificWang
 * @date 2019/3/15 22:44
 */
public class TaxStrategy implements TripStrategy {

	@Override
	public void doTrip(double distance) {
		System.out.println("出租车，时速80公里");
		System.out.println("目标行程：" + distance + "公里");
		System.out.println("本次出行预计耗时：" + distance / 80 + "小时");
	}
}
